<?php
$id=$_GET['id'];
$filename="$id.html";
//echo $filename;
if(file_exists($filename))
{
    echo "已经静态化";
    $dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
    $sql="select * from movie where id=".$id;
    $arr=$dbh->query($sql)->fetch(PDO::FETCH_ASSOC);
    ob_start();
    file_put_contents($filename,ob_get_clean());
    include "mo.php";
    include $filename;
}